{% extends "member/layout.html" %}

{% block content %}
<div class="container">
    <h1 class="mb-4">会员仪表盘</h1>

    <div class="row">
        <!-- 项目概览 -->
        <div class="col-md-4 mb-4">
            <div class="dashboard-card p-4">
                <h5><i class="fas fa-folder me-2"></i>我的项目</h5>
                <div class="stat-number">{{ project_count }}</div>
                <a href="{{ url_for('member.jira.list_projects') }}" class="btn btn-sm btn-outline-primary mt-2">
                    查看详情
                </a>
            </div>
        </div>

        <!-- 任务概览 -->
        <div class="col-md-4 mb-4">
            <div class="dashboard-card p-4">
                <h5><i class="fas fa-tasks me-2"></i>我的任务</h5>
                <div class="stat-number">{{ task_count }}</div>
                <a href="{{ url_for('member.task.list_tasks') }}" class="btn btn-sm btn-outline-primary mt-2">
                    查看详情
                </a>
            </div>
        </div>

        <!-- 审批概览 -->
        <div class="col-md-4 mb-4">
            <div class="dashboard-card p-4">
                <h5><i class="fas fa-clipboard-check me-2"></i>待审批</h5>
                <div class="stat-number">{{ approval_count }}</div>
                <a href="{{ url_for('member.approval.list_approvals') }}" class="btn btn-sm btn-outline-primary mt-2">
                    处理审批
                </a>
            </div>
        </div>
    </div>
</div>
{% endblock %}